<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>

    // 将this和作用域挂钩

    var obj = {
        name:"damu",
        test: ()=>{
            setTimeout(()=>{
                console.log(this)
            },2000)
        }
    }

    obj.test()


</script>
</html>